#include<iostream>
#include<string>
using namespace std;
int main()
{
	string s;
	getline(cin, s);
	for (int i = 0; i < s.size(); ) {
		int k = i;
		int cnt = 0;
		string ans = "";
		if (s[k] == '*') {
			k = i + 2;
			while (s[k] != '*') {
				ans += s[k];
				k++;
			}
			cout << "\\textbf{" << ans << "}";
			i += ans.size() + 4;
		}
		else {
			cout << s[i];
			i++;
		}
	}
	return 0;
}